package com.meteor.raft.healthcheck;

import com.alibaba.fastjson.JSONObject;
import com.meteor.raft.persistent.RaftPeer;

/**
 * @author gang.wang1903@xiaobao100.cn
 * @Date: 2019/7/19 3:07 PM
 */
public interface HealthCheckService {


    /**
     * 发送心跳
     */
    public void sendBeat();

    /**
     * 接收心跳
     * @param beat
     * @return
     */
    public RaftPeer receivedBeat(RaftPeer beat);

}
